package com.example.exception;

public class CustomException extends RuntimeException {
    private String message;
    private String status;

    public CustomException(String message, String status) {
        this.message = message;
        this.status = status;
    }

    public CustomException() {}

    public CustomException(String message) {
        this.status = "500";
        this.message = message;
    }
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
